package com.wk.database.entity;

public class NoMappedIdentifierException extends RuntimeException{
	private static final long serialVersionUID = -1719484783184093983L;

	public NoMappedIdentifierException(Class<?> entity) {
		super("未映射到数据库主键列。实体类：" + entity.getName() + "；字段缺少注解：@PrimaryKey", null);
		this.entity = entity.getName();
	}
	
	public String entity; 
}
